<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>Document</title>
    <style></style>
  </head>
  <body>
    <div></div>
    <script>
      var arr = [12, 34, 32, 89, 4];
      let smallItem = arr[0];
      arr.forEach((item, index) => {
        if (item < smallItem) {
          smallItem = item;
        }
      });
      console.log(smallItem);
    </script>
  </body>
</html>
